package com.globant.common;

import com.globant.service.PeriodicTwitterSearchService;

import android.app.Application;
import android.content.Intent;

public class MyApplication extends Application {
	
	private String search = "";
	
	@Override
	public void onCreate() {
		super.onCreate();
		Intent intent = new Intent(this, PeriodicTwitterSearchService.class);
		this.startService(intent);
		
	}
	
	@Override
	public void onTerminate() {
		super.onTerminate();
		Intent intent = new Intent(this, PeriodicTwitterSearchService.class);
		this.stopService(intent);
	}

	public String getSearch() {
		return search;
	}

	public void setSearch(String search) {
		this.search = search;
	}
}
